import request from '@/utils/request'

// 查询公寓房型列表
export function listTbapartlayout(query) {
  return request({
    url: '/apartment/tbapartlayout/list',
    method: 'get',
    params: query
  })
}

// 查询公寓房型详细
export function getTbapartlayout(id) {
  return request({
    url: '/apartment/tbapartlayout/' + id,
    method: 'get'
  })
}

// 新增公寓房型
export function addTbapartlayout(data) {
  return request({
    url: '/apartment/tbapartlayout',
    method: 'post',
    data: data
  })
}

// 修改公寓房型
export function updateTbapartlayout(data) {
  return request({
    url: '/apartment/tbapartlayout',
    method: 'put',
    data: data
  })
}

// 删除公寓房型
export function delTbapartlayout(id) {
  return request({
    url: '/apartment/tbapartlayout/' + id,
    method: 'delete'
  })
}
